import Relay from "react-relay";

export default class DelOrderMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { delOrder }`;
    }

    getVariables() {
        return {
            argsInput: {
                orderId: this.props.orderId,
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on delOrderPayload {
            delOrder {
                errorCode
                value
                totalResult
                id
              
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
             fragment on delOrderPayload {
                    delOrder {
                        errorCode
                        value
                        totalResult
                        id
                       
                    }
                }
            `]
        }];
    }

}


